#include "Structs.h"
#include <iostream>

struct Person{
  std::string name;
  int age;

  //结构体方法
  void sayHello(){
    std::cout << "Hello, my name is " << name << " and I am " << age << " years old." << std::endl;
  }
};

void ShowStructs(){ 
  std::cout << "=== show structs ==="<< std::endl;
  Person person1;
  person1.name = "张三";
  person1.age = 18;
  person1.sayHello();
  Person person2;
  person2.name = "李四";
  person2.age = 20;
  person2.sayHello();
  std::cout << "=== show structs end ==="<< std::endl;
}